<include file='Common:head'/>

<div class="box2">
	<div class="order_info">
		<div class="info_left">
			<div>訂單號：{$info.ordersn}</div>
			<div>服務內容：{$info.wash_server_name}</div>
			<div>訂單日期：{$info.pay_time|date="Y-m-d H:i:s",###}</div>
			<div>車牌：{$info.license_plate}</div>
			<div>地址：{$info['server_address']['location']}</div>
			<div>狀態：<if condition="$info.wash_status eq 0">未安排<elseif condition="$info.wash_status eq 1"/>洗車中<elseif condition="$info.wash_status eq 2"/>已完成</if></div>
			<div>洗車人員：<if condition="$info.wash_status eq 0">未安排<elseif condition="$info.wash_status eq 1 or $info.wash_status eq 2"/>{$info['wash_log']['server_name']}</if></div>
			<div>洗車時間：<br/>&nbsp;&nbsp;&nbsp;開始：<if condition="$info.wash_status eq 0">未開始<elseif condition="$info.wash_status eq 1 or $info.wash_status eq 2"/><if condition="$info['wash_log']['start_time'] eq null">未開始<else/>{$info['wash_log']['start_time']|date="Y-m-d H:i:s",###}</if></if><br/>&nbsp;&nbsp;&nbsp;完成：<if condition="$info.wash_status eq 0">未開始<elseif condition="$info.wash_status eq 1 or $info.wash_status eq 2"/><if condition="$info['wash_log']['start_time'] eq null">未結束<else/>{$info['wash_log']['end_time']|date="Y-m-d H:i:s",###}</if></if></div>
			<div>聯繫電話：{$info.phone}</div>
			<div>用戶備註：{$info.remarks}</div>
		</div>
	</div>
	<if condition="$info.wash_status eq 0 and $userInfo.p_id eq 0">
	<div class="go_select_washer" onclick="window.location = '{:U(MODULE_NAME.'/'.CONTROLLER_NAME.'/dispatch_wash',array('ordersn'=>$info['ordersn']))}'">去選擇洗車員  ></div>
	<elseif condition="$info.wash_status eq 1 and $userInfo.p_id neq 0"/>
	<div class="go_select_washer" onclick="window.location = '{:U(MODULE_NAME.'/'.CONTROLLER_NAME.'/upload_car_info',array('ordersn'=>$info['ordersn']))}'">去上傳車輛訊息  ></div>
	</if>
</div>
<script type="text/javascript">
$('title').html('訂單詳情');
$('.header .title').html('訂單詳情');
$('.header .left').html('<img src="__PRIVATE__/images/left.png" style="width:55%"/>');
$('.header .right').html('');
$('.header .left').click(function(){
	<if condition="$userInfo['is_staff'] eq 1">
	window.location.href = "{:U(MODULE_NAME.'/server/washer_order_list')}"; 
	<else/>
	window.location.href = "{:U(MODULE_NAME.'/server/server_order_list')}"; 
	</if>
	
});
</script>
<include file='Common:footer_3'/>